<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>后台管理 - 易买网</title>
    <link type="text/css" rel="stylesheet" href="/css/style.css"/>
    <script type="text/javascript" src="/scripts/function-manage.js"></script>
</head>

<body>
<%@ include file="/WEB-INF/manage/common/head.jsp" %>
<%@ include file="/WEB-INF/manage/common/position.jsp"%>
<div id="main" class="wrap">
    <%@include file="/WEB-INF/manage/common/left.jsp" %>
    <div class="main">
        <h2>修改用户</h2>
        <div class="manage">
            <form action="/user/update" method="post">
                <table class="form">
                    <tr>
                        <td class="field">用户名(*)：</td>
                        <td><input type="text" onfocus="this.blur()" class="text" name="userId" value="${user.userId}"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="field">真实姓名(*)：</td>
                        <td><input type="text" class="text" name="userName" value="${user.userName}"/></td>
                    </tr>
                    <tr>
                        <td class="field">登录密码(*)：</td>
                        <td><input type="password" class="text" name="password" value="${user.password}"/></td>
                    </tr>
                    <tr>
                        <td class="field">性别(*)：</td>
                        <td><input type="radio" name="sex" value="T"
                                   <c:if test="${user.sex eq 'T'}">checked="checked"</c:if> />男
                            <input type="radio" name="sex" value="F"
                                   <c:if test="${user.sex eq 'F'}">checked="checked"</c:if>/>女
                        </td>
                    </tr>
                    <tr>
                        <td class="field">出生日期(*)：</td>
                        <td>
                            <input type="date" name="birthday"
                                   value="<fmt:formatDate type='DATE' value='${user.birthday}'/>">
                        </td>
                    </tr>
                    <tr>
                        <td class="field">身份证：</td>
                        <td><input type="text" class="text" value="${user.identityCode}" name="identityCode"
                                   id="identityCode"/></td>
                    </tr>
                    <tr>
                        <td class="field">手机号码：</td>
                        <td><input type="number" class="text" name="mobile" value="${user.mobile}"/></td>
                    </tr>
                    <tr>
                        <td class="field">电子邮件：</td>
                        <td><input type="text" class="text" name="email" value="${user.email}" id="email"/></td>
                    </tr>
                    <tr>
                        <td class="field">地址(*)：</td>
                        <td><input type="text" class="text" name="address" value="${user.address}" id="address"/></td>
                    </tr>
                    <tr>
                        <td><input type="hidden" name="status" value="${user.status}"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><label class="ui-blue"><input type="submit" name="submit" value="更新"/></label></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="clear"></div>
</div>
<%@ include file="/WEB-INF/common/footer.jsp" %>
</body>
</html>
